/**
 *
 * @description: 错误模版
 * @author: junyong.hong
 * @createTime: 2018/5/13
 * @version: 1.0.0.0
 * @history:
 *    1、
 *    2、
 *
 */
export const createError = (code, msg) => {
  const err = new Error(msg)
  err.code = code
  return err
}
